xenpaging: move page add/resume loops into its own function.
authorOlaf Hering <olaf@aepfle.de>
Sun, 20 Nov 2011 16:02:39 +0000 (17:02 +0100)
committerOlaf Hering <olaf@aepfle.de>
Sun, 20 Nov 2011 16:02:39 +0000 (17:02 +0100)
commit270645023151330d8982cb3ea9bba9aa63092e2b
treef0ff56ae6a8bbf45fdf486b8991c3bb612c1c8cc
parentd5c3191d36fc30287ec9155d5ec3a276fc9f87ee
xenpaging: move page add/resume loops into its own function.

Move page resume loop into its own function.
Move page eviction loop into its own function.
Allocate all possible slots in a paging file to allow growing and
shrinking of the number of paged-out pages. Adjust other places to
iterate over all slots.

This change is required by subsequent patches.

v2:
 - check if victims allocation succeeded

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
tools/xenpaging/xenpaging.c